package com.lanchetech.dao;

import com.lanchetech.entity.InvoiceAccount;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface InvoiceAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InvoiceAccount record);

    int insertSelective(InvoiceAccount record);

    InvoiceAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(InvoiceAccount record);

    int updateByPrimaryKey(InvoiceAccount record);

    List<InvoiceAccount> findAllByUserId(@Param("userId") Long userId);

    InvoiceAccount findOneExists(InvoiceAccount invoiceAccount);

    Long countByUserIdAndDeleted(@Param("userId") Long userId, @Param("deleted") Byte deleted);

    InvoiceAccount findOneByUserIdAndId(@Param("userId") Long userId, @Param("id") Long id);

    List<InvoiceAccount> findAllByIds(@Param("ids") List<Long> ids);

    int updateDeletedByUserIdAndId(@Param("updatedDeleted") Byte updatedDeleted, @Param("userId") Long userId, @Param("id") Long id);
}